<template>
    <div>
        <a-table  :scroll="{ y: scrollY }" :pagination="false" :columns="columns" :data-source="data" bordered>
            <!-- <template slot="title" slot-scope="currentPageData">
                物料
            </template> -->
        </a-table>
    </div>
</template>
<script>
export default {
  name: 'stationMaterielTable',
  props: [],
  data() {
    return {
        columns: [
            {
            title: '物料编码',
            dataIndex: 'itemCode',
            scopedSlots: { customRender: 'name' }
            }, {
            title: '物料名称',
            width: 200,
            dataIndex: 'itemName'
            }, {
            title: '应收',
            dataIndex: 'receivable'
            }, {
            title: '已收',
            dataIndex: 'received'
            }, {
            title: '异常',
            dataIndex: 'abnormal'
            }, {
            title: '维修',
            dataIndex: 'repair'
            }, {
            title: '剩余',
            dataIndex: 'surplus'
            }
        ],
        data: [],
        scrollY:200
    }
  },
  methods: {
    
  },
  mounted(){
    this.scrollY = document.body.clientHeight - 450
  }
}
</script>
<style scoped>

</style>
